<template>
<div>hook函数

<div>
 {{ x }},{{ y }}

 
</div>
  <div>
   账号  <input type="text" v-model="user.username">
  </div>
  <div>
   密码：  <input type="text" v-model="user.password">
  </div>

  <div>
    <button @click="login">登录</button>
  </div>
</div>


</template>
<script setup lang='ts'> 
 import {ref,reactive} from 'vue';
 import { useLogin } from '@/hooks/useLogin';
 import { useXY } from '@/hooks/useXY';
 const {user,login}=useLogin();

 const {x,y}=useXY();


</script>
<style scoped lang='less'>
</style>